/**
 * User: RMikhaylenko mirusnet@gmail.com
 * Date: 18/07/13
 * Time: 13:54
 */

import java.awt.*;
import java.awt.event.KeyEvent;
import javax.swing.*;


public class JUIMplayer {

    public static void main(String[] args) {

        JFrame frame = new JFrame();

        KeyStroke escapeKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(new PlaylistPanel());
        frame.setSize((int) Toolkit.getDefaultToolkit().getScreenSize().getWidth(), (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight());
        frame.setUndecorated(true);


        frame.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(escapeKeyStroke, "ESCAPE");
        frame.getRootPane().getActionMap().put("ESCAPE", new EscAction());

        frame.setVisible(true);

    }
}






